import axios from 'axios'
import { getToken } from '@/utils/auth'
export default {
    install(Vue, options) {
      // 定义全局方法
      Vue.prototype.$getFlag = async function() {
        let url = process.env.VUE_APP_BASE_API + '/pc/home/get-flag'
        axios.defaults.headers.common['Authorization'] =getToken()
        return await axios({
            method: 'GET',
            url: url,
        })
      };
    }
  };